﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace NetCoreCMS.Models
{
    /// <summary>
    /// 系统导航菜单
    /// </summary>    
    public partial class Navigation
    {
        public int id { get; set; }
        /// <summary>
        /// 所属父导航ID
        /// </summary>
        public int parent_id { get; set; } = 0;
        /// <summary>
        /// 所属频道ID 1新闻，2商品
        /// </summary>
        public int channel_id { get; set; } = 0;
        /// <summary>
        /// 导航类别
        /// </summary>
        public string nav_type { get; set; }
        /// <summary>
        /// 导航ID
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 副标题
        /// </summary>
        public string sub_title { get; set; }
        /// <summary>
        /// 图标地址
        /// </summary>
        public string icon_url { get; set; }
        /// <summary>
        /// 链接地址
        /// </summary>
        public string link_url { get; set; }
        /// <summary>
        /// 排序数字
        /// </summary>
        public int sort_id { get; set; } = 99;
        /// <summary>
        /// 是否隐藏0显示1隐藏
        /// </summary>
        public int is_lock { get; set; } = 0;
        /// <summary>
        /// 备注说明
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 权限资源
        /// </summary>
        public string action_type { get; set; } = "";
        /// <summary>
        /// 系统默认
        /// </summary>
        public int is_sys { get; set; } = 0;
        [NotMapped]
        public virtual int class_layer { get; set; } = 0;
    }
}